
package org.codebase.spring.framework.soundsystem;

import org.springframework.stereotype.Component;

/**
 * cd实现
 * *************************************************
 * ClassName:SgtPeppers
 *

 * @author:xiaozhichao
 * @date:2018年8月26日 *************************************************
 */
@Component
public class SgtPeppers implements CompactDisc {

    private String title = "sgt ";
    private String artist = "The Beatles";

    public SgtPeppers() {
        super();
    }

    public SgtPeppers(String title, String artist) {
        super();
        this.title = title;
        this.artist = artist;
    }

    @Override
    public void play() {
        System.out.println("Playing " + title + "by" + artist);
    }

}
